-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OPIK-493] Fix Redis setup to properly config database indexes #779
[OPIK-493] Fix Redis setup to properly config database indexes #779
Conversation
apps/opik-backend/src/main/java/com/comet/opik/infrastructure/RedisConfig.java
Outdated
Show resolved
Hide resolved
import java.net.URI; | ||
import java.net.URISyntaxException; | ||
|
||
public record RedisUrlParser(String scheme, String host, int port, int database) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need all these params? They are never used apart from tests. Only database
is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because a dto with only the database index is not reusable
apps/opik-backend/src/test/java/com/comet/opik/infrastructure/redis/RedisUrlParserTest.java
Outdated
Show resolved
Hide resolved
apps/opik-backend/src/test/java/com/comet/opik/infrastructure/redis/RedisUrlParserTest.java
Outdated
Show resolved
Hide resolved
apps/opik-backend/src/test/java/com/comet/opik/infrastructure/redis/RedisUrlParserTest.java
Outdated
Show resolved
Hide resolved
apps/opik-backend/src/test/java/com/comet/opik/infrastructure/redis/RedisUrlTest.java
Outdated
Show resolved
Hide resolved
apps/opik-backend/src/main/java/com/comet/opik/infrastructure/redis/RedisUrl.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
85195d7
to
a1bf279
Compare
… of https://github.com/comet-ml/opik into thiagohora/OPIK-493_fix_redis_setup_to_properly_config
649280f
to
7d00654
Compare
Details
The database index in the Redis URL was ignored since Redisson requires it to be defined at the Config class level.
Issues
OPIK-493